projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf7bb9a
)
entry: Ensure the cursor text handle is shown after touching to reposition cursor.
author
Carlos Garnacho
<carlosg@gnome.org>
Fri, 16 May 2014 15:46:12 +0000
(17:46 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Fri, 23 May 2014 17:54:31 +0000
(19:54 +0200)
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index ea10ff9ddc443da30da865760c191ac2ad5af2a3..0d5f6d85b401e2f3f5af6ebe03e3de56a18e0b4b 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-4726,11
+4726,12
@@
gtk_entry_drag_gesture_end (GtkGestureDrag *gesture,
gint tmp_pos = gtk_entry_find_position (entry, priv->drag_start_x);
gtk_editable_set_position (GTK_EDITABLE (entry), tmp_pos);
-
- if (is_touchscreen)
- gtk_entry_update_handles (entry, GTK_TEXT_HANDLE_MODE_CURSOR);
}
+ if (is_touchscreen &&
+ !gtk_editable_get_selection_bounds (GTK_EDITABLE (entry), NULL, NULL))
+ gtk_entry_update_handles (entry, GTK_TEXT_HANDLE_MODE_CURSOR);
+
gtk_entry_update_primary_selection (entry);
}